import Vue from 'vue'
export const home = {
  index: (params) => {
    return Vue.prototype.$get(`auth/index/${params}`)
  },
  // noticeALl: params => {
  //   return Vue.prototype.$post('/schoolRoll/notice/queryAll', params)
  // },
  noticeShowList: params => {
    return Vue.prototype.$post('/base/ggxx/ggList', params)
  },
  noticeList: params => {
    return Vue.prototype.$post('/base/ggxx/list', params)
  },
  noticeAdd: params => {
    return Vue.prototype.$postJson('/base/ggxx/add', params)
  },
  noticeUpdate: params => {
    return Vue.prototype.$postJson('/base/ggxx/update', params)
  },
  noticeDelete: ids => {
    return Vue.prototype.$get(`/base/ggxx/delete/${ids}`)
  },
  logList: params => {
    return Vue.prototype.$post('/upms/log/list', params)
  },
  logDelete: ids => {
    return Vue.prototype.$get(`/upms/log/delete/${ids}`)
  },
}
